/**
 * 作者: 会写BUG
 * 创作日期: 2025/3/25 21:23
 * 描述: cwbQtPractice.DisplayPanel
 *
 *
 **/

#pragma once

#include <QWidget>

QT_BEGIN_NAMESPACE
class QStackedWidget;
QT_END_NAMESPACE

class ScorePanel;
class MenuPanel;

class DisplayPanel
    : public QWidget
{
    Q_OBJECT

public:
    explicit DisplayPanel(QWidget* _parent = nullptr);
    ~DisplayPanel() override;

    MenuPanel* menuPanel() const;

public Q_SLOTS:
    void menuClicked();

protected:
    void paintEvent(QPaintEvent* event) override;

private:
    void initUI();
    void initConnect();

private:
    QStackedWidget* stacked_widget_ = nullptr;
    ScorePanel* score_panel_ = nullptr;
    MenuPanel* menu_panel_ = nullptr;
};

